#ifndef __MAIN_H__
#define __MAIN_H__

#include "lib_config.h"
#include "systick.h"
#include "key.h"
#include "pwm.h"
#include "buzzer.h"
#include "lcd.h"
#include "led.h"
#include "timer.h"
#include "uart.h"



uint8_t key1_press_flag;    
uint8_t key2_press_flag;
uint8_t key3_press_flag;
uint8_t key4_press_flag;
uint8_t key5_press_flag;

uint16_t key1_hold_time;    
uint16_t key2_hold_time;
uint16_t key3_hold_time;
uint16_t key4_hold_time;
uint16_t key5_hold_time;


uint8_t g_tx_length;     
uint8_t g_tx_count;     
uint8_t g_rx_length;     
uint8_t g_rx_count;      
uint8_t g_rx_finish_flag;    
uint8_t g_rx_start_flag;
uint8_t g_rx_time;

uint8_t g_txbuf[15];
uint8_t g_rxbuf[15];

void hardware_init(void);
#endif
